<include file="./Public:header" />

<script type="text/javascript" src="__PUBLIC__/js/jquery/ui/ui.slider.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery/ui/ui.datepicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery/ui/timepicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery/ui/i18n/jquery-ui-i18n.js"></script>
<script type="text/javascript">
$(function() {
    $('#time_begin').datepicker({
    	duration: '',
    	dateFormat: 'yy-mm-dd',
        showTime: false,
        changeYear: true,
        changeMonth: true,
        constrainInput: true,
        firstDay:0,
        time24h: true
     });
    $('#time_end').datepicker({
    	duration: '',
    	dateFormat: 'yy-mm-dd',
        showTime: false,
        changeYear: true,
        changeMonth: true,
        constrainInput: true,
        firstDay:0,
        time24h: true
     });
});
</script>
<if condition="$act eq 'list'">
	<script type="text/javascript">
		$(document).ready(function(){
			parent.showButton("");
			setAutoHeight(14);
		});
		function filter(){
			$("#form").submit();
		}
	</script>
        <div class="data-list">
         <table class="list">
    		<form action="__URL__/main/" method="post" enctype="multipart/form-data" id="form">
	        <thead>
	          <tr class="filter">
	            <td style="width:460px;"></td>
	            <td>时间段:　<input id="time_begin" type="text" value="{$_mapx[filter_time_begin]|default=''}" name="filter_time_begin">　－　<input type="text" id="time_end" value="{$_mapx[filter_time_end]|default=''}" name="filter_time_end"></td>
	            <td align="right"><a class="button" onclick="filter();"><span>筛选</span></a></td>
	          </tr>
	        </thead>
	        </form>
	      </table>
	      <table class="list">
	        <thead>
	          <tr style="background-color: rgb(244, 244, 248);">
	            <td class="left"><a href="">员工</a></td>
	            <td class="left"><a href="">操作</a></td>
	            <td class="left"><a href="">栏目</a></td>
	            <td class="left"><a href="">时间</a></td>
	          </tr>
	        </thead>
	        <tbody>
	        <volist name="Worklog" id="val">
	          <tr style="background-color: rgb(244, 244, 248);">
	            
	            <td class="left">{$val['user_name']}</td>
	            <td class="left">{$val['actlog']}</td>
	            <td class="left">{$val['requestmod']}</td>
	            <td class="left">{$val['create_time']}</td>
	          </tr>
	        </volist>
	        </tbody>
	      </table>
	       <p align=right>{$page}　　</p>
		</div>

<elseif condition="$act eq 'add' ||$act eq 'edit'"/>
	<include file="main_edit"/>
</if>
<include file="./Public:footer"/>